package com.housediyadmin.events.salesEvents
{
	import flash.events.Event;
	
	import mx.collections.ArrayCollection;
	
	/**
	 * 
	 * @author yanghanbing
	 * 2010/12/16
	 */	
	public class GetSalesEvent extends Event
	{
		public static const GET_ALL_SALES:String = "getAllSales";
		public static const UPDATE_SALES_MODEL:String = "updateSalesModel";
		
		public var salesArray:ArrayCollection;
		
		
		/**
		 * 该事件是得到所有的Sales信息，
		 * @param type 必选参数
		 *           GET_ALL_SALES：得到Sales时选择它，
		 *           UPDATE_SALES_MODEL：更新SalesModel
		 * @param salesArray 可选参数，一般选择UPDATE_SALES_MODEL时不能为空
		 * 
		 */		
		public function GetSalesEvent(type:String, salesArray:ArrayCollection = null)
		{
			super(type);
			this.salesArray = salesArray;
		}
		
		override public function clone():Event
		{
			return new GetSalesEvent(type, salesArray);
		}
	}
}